package com.whmskj.xjlhsc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author 张
 * @version 1.0
 */

@Data
@TableName(value = "equipmentSpareParts")
public class EquipmentSpareParts {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String nameOfSpareParts;
    private String descriptionOfSpareParts;
    private String type;
    private String sparePartsSn;
    private String cycleType;
    private Double replacementCycle1;
    private String letsGoLetsGoLetsGoLetsGoLetsGoLe;
    private String fd68;
    private String fc54;
    private String f248;
    @TableField(value = "sparePartsPicture", typeHandler = JacksonTypeHandler.class)
    private List<Object> sparePartsPicture=new ArrayList<>();
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
    private Date initialTimeOfUse;
    private String process;
    private String typeOfSpecification;
    @TableField(typeHandler = JacksonTypeHandler.class)
    private String fa57;
}
